#ifndef		RULES_HH__
# define	RULES_HH__

# include	<string>
# include	<cstring>
# include	<cstdlib>

static const std::string	DOUBLE3 = "DOUBLE_3";
static const std::string	BREAKING5 = "BREAKING_5";


class		Rules
{
public:
  Rules():threes(false), fives(false), ms(0) { }
  ~Rules() { }
  void		parseRules(const char *);
  void		setThrees(bool);
  void		setFives(bool);
  void		setMs(unsigned int);
  bool		getThrees(void) const;
  bool		getFives(void) const;
  unsigned int	getMs(void) const;
private:
  bool		threes;
  bool		fives;
  unsigned int	ms;
  bool		isAllNum(const char *);
};

#endif		/* !RULES_HH__*/
